package com.qfmy.webapp.controller.wallpaper;

import com.qfmy.common.result.Result;
import com.qfmy.model.vo.wallpaper.EmojiGroupVo;
import com.qfmy.webapp.service.wallpaper.EmojiGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 清风明月
 * @Package com.qfmy.web.app.controller.listenBook
 * @date 2025/11/26
 * @description 表情分组
 */
@RestController
@SuppressWarnings("all")
@RequestMapping("/app/emojiGroup")
public class EmojiGroupController {

    /**
     * 注入service
     */
    @Autowired
    private EmojiGroupService emojiGroupService;

    /**
     * 根据表情的类型获取表情分组名称
     */
    @RequestMapping("/getEmojiGroupNameByType")
    public Result<List<EmojiGroupVo>> getEmojiGroupNameByType(@RequestParam Integer categoryId, @RequestParam Integer num , @RequestParam Integer size) {
        List<EmojiGroupVo> list = emojiGroupService.getEmojiGroupNameByType(categoryId,num,size);
        return Result.ok(list);
    }

}
